package com.bookstore.mapper;

import com.bookstore.domain.BookType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface BookTypeMapper {
    @Select("select * from book_type")
    public List<BookType> findAll();

    @Select("select * from book_type where btype=#{btype}")
    public List<BookType> findById(Integer btype);
}